<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>例2.17</title>
</head>
<body>
    <script>
        let [x,y]=[1,2];
        console.log(x,y);

//  //     let a,b,rest;
//         [a,b,...rest]=[1,2,3,4,5,6];
//         console.log(a,b,rest);

//         let[a,,b]=[1,2,3];
//         console.log(a,b);

//         let[a,b]=[1];
//         console.log(a,b);

//         let[a,b=2]=[1];
//         console.log(a,b);

        let[a,b,c,d,e]="hello";
        console.log(a,b,c,d,e);
    </script>
</body>
</html>